package pageobject;

import static org.testng.Assert.assertEquals;
import static org.testng.Assert.assertTrue;

import java.util.concurrent.TimeUnit;

import org.openqa.selenium.By;
import org.openqa.selenium.WebDriver;
import org.openqa.selenium.WebElement;
import org.openqa.selenium.firefox.FirefoxDriver;
import org.openqa.selenium.htmlunit.HtmlUnitDriver;
import org.testng.annotations.AfterClass;
import org.testng.annotations.AfterMethod;
import org.testng.annotations.BeforeClass;
import org.testng.annotations.BeforeMethod;

public class PageObjectPatternSeleniumBase {

	protected WebDriver driver;
	protected String baseUrl;

	public PageObjectPatternSeleniumBase() {
		super();
	}

	@BeforeMethod
	public void setUpDriver() throws Exception {
		driver = new FirefoxDriver();
		//driver = new HtmlUnitDriver();
		driver.manage().timeouts().implicitlyWait(30, TimeUnit.SECONDS);
	
	}

	@AfterMethod
	public void tearDown() throws Exception {
		driver.quit();
		
	}

}